The getPos function determines the position of a specific value in a property list.